//
//  KLSGCollectAndNovelTableViewCell.m
//  KaoLaShiGuangFM
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "KLSGCollectAndNovelTableViewCell.h"

@implementation KLSGCollectAndNovelTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addSubviews];
    }
    return self;
}

- (void)addSubviews
{
    self.figureLable = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 80)];
    self.figureLable.textAlignment = NSTextAlignmentCenter;
    self.figureLable.text = @"1";
    self.figureLable.font = [UIFont systemFontOfSize:22];
    [self.contentView addSubview:self.figureLable];
    
    self.coverImage = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.figureLable.frame), 10, 60, 60)];
    
    [self.contentView addSubview:self.coverImage];
    
    self.titleLable = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverImage.frame) + 10, 5, kScreenWidth / 2, 40)];
    self.titleLable.text = @"1";
    self.titleLable.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.titleLable];
    
    self.iconSeakerImage = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.titleLable.frame) + 8, 10, 15, 15)];
    [self.contentView addSubview:self.iconSeakerImage];
    
    self.tagsLable = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverImage.frame) + 10, CGRectGetMaxY(self.titleLable.frame) - 10, kScreenWidth / 2, 30)];
    self.tagsLable.text = @"1";
    self.tagsLable.font = [UIFont fontWithName:@"TimesNewRomanPSMT" size:13];
    self.tagsLable.alpha = kAlpha;
    [self.contentView addSubview:self.tagsLable];
    
    self.iconImage = [[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverImage.frame) + 10, CGRectGetMaxY(self.tagsLable.frame) - 5, 15, 15)];
    [self.contentView addSubview:self.iconImage];
    
    self.tracksCountLable = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.iconImage.frame) + 3, CGRectGetMaxY(self.tagsLable.frame) - 10, 100, 30)];
    self.tracksCountLable.text = @"1";
    self.tracksCountLable.alpha = kAlpha;
    self.tracksCountLable.font = [UIFont fontWithName:@"TimesNewRomanPSMT" size:14];
    [self.contentView addSubview:self.tracksCountLable];
    
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.coverImage.frame) + 10, 79, kScreenWidth - 110, 1)];
    lineView.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:lineView];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
